package com.tastespot.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tastespot.model.dto.UserDTO;
import com.tastespot.model.entity.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 虎哥
 * @since 2021-12-22
 */
public interface UserMapper extends BaseMapper<User> {
    List<UserDTO> queryUserOrderById(@Param("userIds") List<Long> userIds);
    @Select("SELECT * FROM tb_user")
    List<User> selectAll();
}
